package com.unknownman.block.config;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class SwapTokenConfig {

    @JsonProperty("token0")
    private Token0DTO token0;
    @JsonProperty("token1")
    private Token1DTO token1;

    @NoArgsConstructor
    @Data
    public static class Token0DTO {

        @JsonProperty("address")
        private String address;
        @JsonProperty("decimals")
        private Integer decimals;
        @JsonProperty("symbol")
        private String symbol;
        @JsonProperty("isCoinBase")
        private Boolean isCoinBase;
    }

    @NoArgsConstructor
    @Data
    public static class Token1DTO {

        @JsonProperty("address")
        private String address;
        @JsonProperty("decimals")
        private Integer decimals;
        @JsonProperty("symbol")
        private String symbol;
        @JsonProperty("isCoinBase")
        private Boolean isCoinBase;
    }
}
